import QtQuick 2.0
import QtMultimedia 5.0

Video {
    id: video
    focus: true
    property bool started: false

    function turnoff()
    {
        anim.from = 1.0
        anim.to = 0.0
        anim.start()
        started = false
    }

    function turnon()
    {
        anim.from = 0.0
        anim.to = 1.0
        anim.start()
        started = true
    }

    NumberAnimation on opacity {
        id: anim
        easing.type: Easing.Linear
        duration: 750
        running: false;
    }
}
